<template>
  <ACard title="最新动态" v-bind="$attrs">
    <template #extra>
      <a-button type="link" size="small">更多</a-button>
    </template>
    <a-list item-layout="horizontal" :data-source="dynamicInfoItems">
      <template #renderItem="{ item }">
        <a-list-item>
          <a-list-item-meta>
            <template #description>
              {{ item.date }}
            </template>
            <!-- eslint-disable-next-line -->
            <template #title> {{ item.name }} <span v-html="item.desc"> </span> </template>
            <template #avatar>
              <icon :icon="item.avatar" :size="30" />
            </template>
          </a-list-item-meta>
        </a-list-item>
      </template>
    </a-list>
  </ACard>
</template>
<script lang="ts" setup>
  import { dynamicInfoItems } from './data';
</script>
